<h1>Man hinh List User</h1><br><br>
<a href="/user/add">Add new user</a>
<table class="table">
<tr>
    <td>ID</td>
    <td>USR_NAME</td>
    <td>Real_Name</td>
    <td>Gender</td>
    <td>Usr_Type</td>
    <td>Phone</td>
    <td>Address</td>
    <td>Note</td>
    <td>Action</td>
</tr>
<?php foreach($user as $usr) : ?>
<tr>
    <td><?php echo $this->escapeHtml($usr->id);?></td>
    <td><?php echo $this->escapeHtml($usr->username);?></td>
    <td><?php echo $this->escapeHtml($usr->real_name);?></td>
    <td><?php echo $this->escapeHtml($usr->gender);?></td>
    <td><?php echo $this->escapeHtml($usr->user_type);?></td>
    <td><?php echo $this->escapeHtml($usr->phone_number);?></td>
    <td><?php echo $this->escapeHtml($usr->address);?></td>
    <td><?php echo $this->escapeHtml($usr->note);?></td>
    <td>
        <a href="<?php echo $this->url('user',
            array('action'=>'edit', 'id' => $usr->id));?>">Edit</a>
        <a href="<?php echo $this->url('user',
            array('action'=>'delete', 'id' => $usr->id));?>">Delete</a>
    </td>
</tr>
<?php endforeach; ?>
</table>
<?php
echo $this->paginationControl($paginator, 'Sliding', 'layout/paginator', array('name' => 'user', 'controller' => 'user', 'action' => 'index'));
?>